package com.youlai.boot.daily.model.form;

import java.io.Serial;
import java.io.Serializable;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Getter;
import lombok.Setter;

import java.time.LocalDate;
import jakarta.validation.constraints.*;

/**
 * 日常记录表单对象
 *
 * @author cuisheng
 * @since 2025-04-02 22:51
 */
@Getter
@Setter
@Schema(description = "日常记录表单对象")
public class DailyRecordForm implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

    @Schema(description = "记录ID")
    private Integer id;

    @Schema(description = "记录日期")
    private LocalDate recordDate;

    @Schema(description = "记录标题")
    @NotBlank(message = "记录标题不能为空")
    private String recordTitle;

    @Schema(description = "记录内容")
    @NotBlank(message = "记录内容不能为空")
    private String recordContent;

    @Schema(description = "上传的图片路径（JSON 格式存储多个图片路径）")
    private String images;

    @Schema(description = "创建人")
    private String createBy;


}
